package com.teamelite.exmgmt;

public class cFunction {
	public String convertGenderFromDB(String g){
		return (g.equals("L")==true)?"Laki-Laki":"Perempuan";
	}
	
	public String convertMonthToName(int m){
		if (m==1){ return "January"; }
		else if (m==2){ return "February"; }
		else if (m==3){ return "March"; }
		else if (m==4){ return "April"; }
		else if (m==5){ return "May"; }
		else if (m==6){ return "June"; }
		else if (m==7){ return "July"; }
		else if (m==8){ return "August"; }
		else if (m==9){ return "September"; }
		else if (m==10){ return "October"; }
		else if (m==11){ return "November"; }
		else { return "December"; }
	}
}
